/**
 * @create 2022-06-18
 * @desc common
 */

export const createDisplayFromOptions = <T = any>(arr: OptionsItem<T>[]) =>
  Object.fromEntries(arr.map(({ value, label }) => [value, label]));
